package com.base_server.controller;

import com.base_server.service.TestService;
import com.model.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zy
 * on 2018/3/8.
 */
@RestController
public class HelloController {

    @Autowired
    private TestService testService;

    @GetMapping(value = "/hello")
    public String hello(){
        UserVO userVO1 = testService.selectAll();
        return "hello!!!"+userVO1.toString();
    }
}
